Ext.define('HIT.view.DealSearchStateControl', {
    extend: 'Ext.window.Window',
    alias: 'widget.dealsearchstatecontrol',

    height:240,
    width:300,
    overlapHeader: false,
    id:'state-control-window',
    preventHeader: true,
    title: Share.T('状态控制'),
    resizable : true,
    closable  : true, 
    layout: {
        type: 'absolute'
    },
    y:10,
    style: 'opacity: 0.8;',
    
    initComponent: function() {
        var me = this;     
        this.title = Share.T('状态控制');
        Ext.applyIf(me, {
             items:   [{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:20,
		                    y:10,
		                    id:'deal-state-close',
		                    style: 'opacity: 1;',
		                    text:Share.T('置为未开')	                    
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:160,
		                    y:10,
		                    id:'deal-state-open',
		                    style: 'opacity: 1;',
		                    text:Share.T('置为已开')	                    
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:20,
		                    y:60,
		                    id:'deal-state-keep',
		                    style: 'opacity: 1;',
		                    text:Share.T('单据保持')	                    
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:160,
		                    y:60,
		                    id:'deal-state-dekeep',
		                    style: 'opacity: 1;',
		                    text:Share.T('解除保持')	                    
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:20,
		                    y:110,
		                    id:'deal-state-unsplit',
		                    text:Share.T('撤销拆分'),	  
		                    style: 'opacity: 1;'
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:160,
		                    y:110,
		                    id:'deal-split-unmerge',
		                    text:Share.T('撤销合并'),
		                    style: 'opacity: 1;'
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:20,
		                    y:160,
		                    id:'deal-associat-preopen',
		                    text:Share.T('关联预开'),
		                    style: 'opacity: 1;'
                      },{xtype: 'button',
		                    width:110,
		                    height:30,
		                    x:160,
		                    y:160,
		                    id:'deal-associat-preclose',
		                    text:Share.T('撤销预开关联'),
		                    style: 'opacity: 1;'
                      }			
                   ]    
           });
        me.callParent(arguments);
        
        
    }

});